<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // 静态属性: 就是对象的属性

      // 遗憾: JAVA中没有下方这种语法
      // var b = { name: 'MIKE' }
      // console.log(b.name)
      // console.log(b)

      class a {
        static name = 'MIKE'
        static age = 29
      }
      // 相当于: JS的 {name:'MIKE', age:29}
      // 但是JAVA的class语法, 需要用 static 标注

      console.dir(a)
      console.log(a.name)
      console.log(a.age)
    </script>
  </body>
</html>
